<!DOCTYPE html>
<html>
<head>
	{include file="common_header" /}
	{include file="common_top" /}
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-body">
		  <div style="padding-bottom: 10px;">
          {if $ps['add']['power']}<button class="layui-btn layuiadmin-btn-useradmin" onclick="callurl('{:url('manage/manageadd')}')" data-type="add">添加</button>{/if}
        </div>
            <table class="layui-table" lay-even="" lay-skin="nob">

            <thead>
						<tr>
							<th class="text-center">序号</th>
							<th>用户名</th>
							<th>群组</th>
							<th class="text-center">状态</th>
							<th class="text-center">超管</th>
							<th>最近IP</th>
							<th>最近时间</th>
							<th>登录数</th>
							<th>系统</th>
							<th>浏览器</th>
							{if $ps['del']['power'] or  $ps['edit']['power']}
							<th>管理</th>
							{/if}
						</tr>
            </thead>
            <tbody>
						{volist name="list" id="vo"}
						<tr id="tr_{$vo.m_id}">
							<td class="text-center">{$vo.m_id}</td>
							<td>{$vo.m_username}</td>
							<td>{$vo.g_title}</td>
							<td class="text-center">{if $vo.m_status==1}<span class="layui-badge-dot layui-bg-green"></span>{else}<span class="layui-badge-dot"></span>{/if}</td>
							<td class="text-center">{if $vo.m_manage==1}<span class="layui-badge-dot layui-bg-green"></span>{else}<span class="layui-badge-dot"></span>{/if}</td>
							<td>{$vo.m_this_ip}</td>
							<td>{$vo.m_this_time}</td>
							<td>{$vo.m_count}</td>
							<td>{$vo.m_this_os}</td>
							<td>{$vo.m_this_broswer}</td>
                            {if $ps['del']['power'] or  $ps['edit']['power']}
							<td>
							<div class="layui-btn-group">
							{if $vo.m_manage!=1}
                            {if $ps['del']['power']}
								<button class="layui-btn layui-btn-sm" onclick="calldel('{:url('manage/managedel',array('id'=>$vo.m_id))}','tr_{$vo.m_id}')"><i class="layui-icon">&#xe640;</i></button>
                            {/if}
                            {/if}
                            {if $ps['edit']['power']}
								<button class="layui-btn layui-btn-sm" onclick="callurl('{:url('manage/manageedit',array('id'=>$vo.m_id))}')"><i class="layui-icon">&#xe642;</i></button>
							{/if}
							</div>
							</td>
                            {/if}
						</tr>
						{/volist}

            </tbody>
          </table> 
          </div>
        </div>
      </div>
    </div>
  </div>
  {include file="common_footer" /} 
</body>
</html>